package com.wisezone.workflow.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wisezone.common.bean.entity.BaseEntity;

/**
 * 链接对象
 * 
 * @author tss 2009-09-05
 * 
 */
@Entity
@Table(name = "wf_link")
public class WfLink extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5999047308632142429L;

	/**
	 * ID
	 */
	private Long id;

	/**
	 * 活动ID
	 */
	@Column(name = "activity_id", length = 8)
	private Long activityId;

	/**
	 * 前一个活动ID
	 */
	@Column(name = "pre_activity_id", length = 8)
	private Long preActivityId;

	/**
	 *流程模版ID
	 */
	@Column(name = "process_def_id", length = 8)
	private Long processDefId;

	/**
	 * 链接名称
	 */
	@Column(name = "name", length = 20)
	private String name;

	/**
	 * 位置
	 */
	@Column(name = "position", length = 20)
	private String position;

	/**
	 * 条件
	 */
	@Column(name = "condition", length = 50)
	private String condition;

	/**
	 * 备注
	 */
	@Column(name = "memo", length = 100)
	private String memo;

	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	public Long getPreActivityId() {
		return preActivityId;
	}

	public void setPreActivityId(Long preActivityId) {
		this.preActivityId = preActivityId;
	}

	public Long getProcessDefId() {
		return processDefId;
	}

	public void setProcessDefId(Long processDefId) {
		this.processDefId = processDefId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}